<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragment::head('首页')">
</head>
<body>
<!--导航 ui表示ui inverted与当前色相反  attached表依附，去圆角  segment表片段-->
<div th:replace="fragment::menu(1)"></div>
<!--中间内容-->
<div class="m-padded-tb-large m-container">
    <div class="ui container">
        <div class="ui grid stackable">
            <!--header  左边博客列表-->
            <div class="ui eleven wide column">
                <div class="ui top attached segment ">
                    <!--middle aligned 垂直居中-->
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="column right aligned ">
                            共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.getTotalElements()}"> 14 </h2> 篇
                        </div>
                    </div>
                </div>
                <!--content-->
                <div class="ui attached segment ">
                    <!--不加vertical会是一个框框分割这么写segment，
                        加vertical会定义垂直排列，即用水平线分割-->
                    <div th:each="blog,iterStat : ${page.getContent()}" class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed middle aligned stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header" ><a href="#" class="m-black" th:href="@{/blog/{id}/(id=${blog.id})}" th:text="${blog.title}">你真的理解什么是财富自由吗</a></h3>
                                <p class="m-text" th:text="|${blog.description}......|">
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt="" th:src="@{${blog.user.avatar}}"
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header" th:text="${blog.user.nickName}">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> <span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020-12-14</span>
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> <span th:text="${blog.views}">2020-12-14</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" th:href="@{/type/{id}(id=${blog.type.id})}" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="column">
                                            <a  th:each="tag : ${blog.tags}" target="_blank" th:href="@{/tag/{id}(id=${tag.id})}" class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin" th:text="${tag.name}">方法论</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--封面图-->
                            <div class="ui five wide column">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" th:src="@{${blog.firstPic}}" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>

                    <!--/*-->
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui vertical m-text m-padded-tb-large segment m-mobile-lr-clear m-padded-lr">
                        <div class="ui mobile reversed stackable grid">
                            <div class="ui eleven wide column">
                                <h3 class="ui header">你真的理解什么是财富自由吗</h3>
                                <p>
                                    简单说来，财富自由就是有足够多的时间和足够多的钱做你想做的事情。在“基本”的生活需求得到“持续”保障的前提下，有足够的资本可以“自由”的投入到“该”做的事情中！健康和智慧如果只是前提，那么狭义的金钱就只能提到一个更高的层面，在生活面前金钱高于一切，但请注意，我们所说的并不是谈论创业而是资本运作！因为只有资本运作才能实现财富自由，如果要持续的投入过多精力就不会有自由的存在</p>
                                <div class="ui grid">
                                    <div class="row m-padded-bottom-tiny">
                                        <div class="eleven wide column">
                                            <div class="ui link list horizontal mini">
                                                <div class="item">
                                                    <img src="https://picsum.photos/id/1005/400/400" alt=""
                                                         class="ui avatar image">
                                                    <!--后面要跟文字的 用content-->
                                                    <div class="content"><a href="#" class="header">Ago</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i> 2020-12-14
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i> 555
                                                </div>
                                            </div>
                                        </div>
                                        <div class="five wide column right aligned">
                                            <a href="#" target="_blank"
                                               class="ui label teal basic right aligned m-padded-tiny m-text-thin">认知升级</a>
                                        </div>
                                    </div>
                                    <div class="row m-padded-top-tiny">
                                        <div class="column">
                                            <div class="ui teal basic label m-padded-mini m-margin-top-small m-text-thin">方法论</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a href="#" target="_blank">
                                    <img src="https://picsum.photos/id/1005/800/400" alt="" class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <!--*/-->

                </div>

                <!--footer-->
                <div class="ui bottom attached segment" th:if="${page.getTotalPages()>1}">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#" th:href="@{/(page=${page.number-1})}" th:unless="${page.isFirst()}" class="ui teal  button basic mini">上一页</a>
                        </div>
                        <div class="column right aligned ">
                            <a href="#" th:href="@{/(page=${page.number+1})}" th:unless="${page.isLast()}" class="ui teal  button basic mini">下一页</a>
                        </div>
                    </div>
                </div>
            </div>

            <!--右边的top-->
            <div class="five wide column">
                <!--分类-->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="column right aligned">
                                <a href="#" th:href="@{/type/-1}"  target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>

                    <div class="ui segment teal">
                        <!--fluid填充-->
                        <div class="ui fluid vertical menu">
                            <!--item 默认文字居左  另一个div居右-->
                            <a href="#" class="item" th:each="type: ${types}" th:href="@{/type/{id}/(id=${type.id})}" target="_blank">
                                <span th:text="${type.name}"></span>
                                <div class="ui teal basic label" th:text="${type.getBlogs().size()}">13</div>
                            </a>
                            <!--/*-->
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic label">13</div>
                            </a>
                            <!--*/-->

                        </div>
                    </div>
                </div>
                <!--标签-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="tags icon"></i>标签
                            </div>
                            <div class="column right aligned">
                                <a href="#" th:href="@{/tag/-1}" target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui segment teal">
                        <a href="#" th:href="@{/tag/{id}(id=${tag.id})}"  target="_blank" th:each="tag: ${tags}" class="ui label teal basic m-margin-tb-tiny">
                            <span th:text="${tag.name}"></span>
                            <div class="detail" th:text="${tag.getBlogs().size()}">13</div>
                        </a>
                        <!--/*-->
                        <a href="#" target="_blank" class="ui label teal basic m-margin-tb-tiny">
                            标签
                            <div class="detail">13</div>
                        </a>
                        <a href="#" target="_blank" class="ui label teal basic m-margin-tb-tiny">
                            标签
                            <div class="detail">13</div>
                        </a>
                        <a href="#" target="_blank" class="ui label teal basic m-margin-tb-tiny">
                            标签
                            <div class="detail">13</div>
                        </a>
                        <a href="#" target="_blank" class="ui label teal basic m-margin-tb-tiny">
                            标签
                            <div class="detail">13</div>
                        </a>
                        <a href="#" target="_blank" class="ui label teal basic m-margin-tb-tiny">
                            标签
                            <div class="detail">13</div>
                        </a>
                        <!--*/-->

                    </div>
                </div>
                <!--最新推荐-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <i class="bookmark icon"></i>最新推荐
                    </div>

                    <div class="ui segment" th:each="recommendBlog : ${recommendBlogs}">
                        <a href="#" th:href="@{/blog/{id}(id=${recommendBlog.id})}" target="_blank" class=" m-black" th:text="${recommendBlog.getTitle()}">用户故事 (User Story)</a>
                    </div>
                    <!--/*-->
                    <div class="ui segment">
                        <a href="#" target="_blank" class=" m-black">用户故事 (User Story)</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class=" m-black">用户故事 (User Story)</a>
                    </div>
                    <div class="ui segment">
                        <a href="#" target="_blank" class=" m-black">用户故事 (User Story)</a>
                    </div>
                    <!--*/-->
                </div>
                <!--二维码-->
                <h4 class="ui horizontal divider header m-margin-top-large">
                    扫码关注我
                </h4>
                <div class="ui card centered" style="width: 12em">
                    <img src="../static/images/wechat.png" alt="" class="ui rounded image" th:src="@{/static/images/wechat.png}">
                </div>
            </div>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
        </div>
    </div>

</div>


<!--底部  vertical垂直-->
<div th:replace="fragment::footer"></div>


<div th:replace="fragment::script"></div>


<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>


</body>

</html>